* Fix table prefix usage in Block::enumBlocks
authorBrion Vibber <brion@users.mediawiki.org>
Tue, 23 Aug 2005 20:38:46 +0000 (20:38 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Tue, 23 Aug 2005 20:38:46 +0000 (20:38 +0000)
RELEASE-NOTES
includes/Block.php

index 9a6c466..5e36481 100644 (file)
@@ -48,6 +48,7 @@ Misc work going on.....
 * Move ArticleSave hook execution into Article insert/update functions,
   so they get called on non-EditPage actions that use these functions
   to create or update pages.
+* Fix table prefix usage in Block::enumBlocks
 
 
 === Caveats ===
index 84b2475..721b1f7 100644 (file)
@@ -206,7 +206,7 @@ class Block
 
                extract( $db->tableNames( 'ipblocks', 'user' ) );
 
-               $sql = "SELECT ipblocks.*,user_name FROM $ipblocks,$user " .
+               $sql = "SELECT $ipblocks.*,user_name FROM $ipblocks,$user " .
                        "WHERE user_id=ipb_by $cond ORDER BY ipb_timestamp DESC $options";
                $res = $db->query( $sql, 'Block::enumBans' );
                $num_rows = $db->numRows( $res );